package awk.model.animal;

import lombok.Data;

@Data
public class Dog implements Animal {
    private int age;
    private String name;

    public Dog(){
    }


    public Dog(String name,int age){
        this.name = name;
        this.age = age;
    }


    @Override
    public void eat() {
        System.out.println("狗狗在吃东西！");
    }

    @Override
    public void sleep() {
        System.out.println("狗狗在午休！");
    }

    @Override
    public void eat(String food) {
        System.out.println("狗狗在吃" + food);
    }
}
